package cc.verywell.pureblock.msg.nfs.map;

import java.util.List;

/**
* 
* Copyright © 2019 TanYaqiu. All rights reserved.
* @author TanYaqiu 
* @address flat 601
* @date 2019年5月25日 下午4:25:43
*/
public interface FSrelative {
	static public interface RelativeCount{
		public boolean isMainSet();
		public int directLink();
		public int indirLink();
	}
	static public interface RelativeDetail{
	static public byte STATE_ADDMAIN=1;
	static public byte STATE_CUTMAIN=2;
	static public byte STATE_ADDLINK=3;
	static public byte STATE_CUTLINK=4;
		public byte[] from();
		public byte state();
		public byte priority();
		public long time();
	}
	void putMainSet(byte[] to);
	void removeMainSet(byte[] to);
	void putRelative(byte[] from,byte[] to,byte priority);
	void removeRelative(byte[] from,byte[] to,byte priority);
	RelativeCount getRelativeCount(byte[] to);
	List<RelativeDetail> getRelativeList(byte[] to);
}
